<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- multipart/form-data -->
    <!-- application/x-www-form-urlencoded -->
     <!-- json数据类型 -->
    <form action=""  enctype="application/x-www-form-urlencoded"></form>

    <script>

       let objstr='{"data":{"diffTypes":{1:"对账完成",2:"对账失败-金额不匹配",3:"对账失败-第三方无此单",4:"对账失败-公交无此单"},"payChannels":{2:"微信",3:"银联",9:"银联闪付"},"payStatus":{100:"对账完成",13:"对账失败-金额不匹配"},"payTypes":{2:"微信",3:"银联",9:"银联闪付"}}}'
    let json = eval(`(${objstr})`)

    
       let obj = {"data":{"diffTypes":{1:"对账完成",2:"对账失败-金额不匹配",3:"对账失败-第三方无此单",4:"对账失败-公交无此单"},"payChannels":{2:"微信",3:"银联",9:"银联闪付"},"payStatus":{100:"对账完成",13:"对账失败-金额不匹配"},"payTypes":{2:"微信",3:"银联",9:"银联闪付"}}}
      
      
     
      let str1 =   JSON.stringify(obj)
   console.log(str1);
   
      let obj2 = JSON.parse(str1)
    

    </script>
</body>
</html>